<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
    <%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html >
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<base href="<%=basePath%>">
<title>学生信息管理系统主界面</title>
<script type="text/javascript">
	      function winclose() {
	      
		        window.location.href = "Logout.jsp"
	          
	           }
         </script>
</head>
<body>
<div class="row-fluid">
			<div class="span12">
				<div class="head">
					<div class="headLeft">
						<img src="${pageContext.request.contextPath}/images/logo.png" />
					</div><br/>
					<div class="headRight">
						欢迎管理员：
						<font color="red"><%=session.getAttribute("username")%></font>&nbsp;&nbsp;&nbsp;
						 <i class="glyphicon glyphicon-time"></i>&nbsp;&nbsp;<font id="today"></font>
					</div>
				</div>
			</div>
		</div> 
		<div class="row-fluid">
			<div class="span12">
				<div class="navbar">
					<div class="navbar-inner">
					   
						<ul class="nav nav-tabs">
							<li><a class="brand" href="Admin.jsp"><i class="glyphicon glyphicon-home"></i>&nbsp;首页</a></li>
							<li><a href="pre?method=studentAdd"><i class="glyphicon glyphicon-pencil"></i>&nbsp;添加学生信息 </a></li>
							<li><a href="pre?method=teacherAdd"><i class="glyphicon glyphicon-pencil"></i>&nbsp;添加教师信息 </a></li>
							<li><a href="showAllStudents"><i class="glyphicon glyphicon-book"></i>&nbsp;学生信息维护 </a></li>
							<li><a href="showAllTeachers"><i class="glyphicon glyphicon-book"></i>&nbsp;教师信息维护 </a></li>
							<li><a href="pre?method=preupdatetepwd"><i class=" glyphicon glyphicon-cog"></i>&nbsp;修改密码</a></li>
							<li><a href="#myModal" data-toggle="modal"><span class="glyphicon glyphicon-log-out" aria-hidden="true"></span>退出系统</a></li>
						</ul>
					</div>
				</div>
			</div>
		</div>
		<div class="modal fade" id="myModal" role="dialog" aria-labelledby="myModalLabel2" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                <h4 class="modal-title" id="myModalLabel2">
                    提示
                </h4>
            </div>
            <div class="modal-body">
                确定离开?
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
                <button type="button" class="btn btn-primary" data-dismiss="modal" onclick="winclose()">离开</button>
            </div>
        </div>
    </div>
</div>
</body>
</html>